﻿cmake_minimum_required(VERSION 3.5)

project(RXSound VERSION 0.1 LANGUAGES CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(ProgramName RXSound)
  
include_directories(
    ${CMAKE_CURRENT_SOURCE_DIR}/../ReflectX
	${CMAKE_CURRENT_SOURCE_DIR}/../RXEntitySystem
    )

add_library(${ProgramName} SHARED
	RXSound_global.h
	RXSoundAspect.cpp
	RXSoundAspect.h
)

if(UNIX)
	set(LIB_PTHREAD -pthread)
endif()

target_link_libraries(${ProgramName} 
${LIB_PTHREAD} 
ReflectX 
RXEntitySystem

)
set_target_properties(${PROJECT_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
target_compile_definitions(RXSound PRIVATE RXSound_LIBRARY)
